import request from '@/utils/request'

const prePath = '/stock'

// 库存产品扫码
export function getDepotStorageScan(params) {
  return request({
    url: prePath + '/depotStorage/scan',
    method: 'get',
    params,
  })
}

//获取库存产品
export function getDepotStoragePage(params) {
  return request({
    url: prePath + '/depotStorage/page',
    method: 'get',
    params,
  })
}

//获取库存产品
export function getCurrentDepotStoragePage(params) {
  return request({
    url: prePath + '/depotStock/currentPage',
    method: 'get',
    params,
  })
}

//导出库存产品
export function exportCurrentDepotStorage(params) {
  return request({
    url: prePath + '/depotStorage/exportExcel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}

//获取具体库存产品
export function getDepotStorageAll(params) {
  return request({
    url: prePath + '/depotStorage/all',
    method: 'get',
    params,
  })
}

//获取具体库存产品
export function getStockCount(params) {
  return request({
    url: prePath + '/depotStorage/getStockCount',
    method: 'get',
    params,
  })
}

//获取具体库存产品
export function getDepotStoragePart(params) {
  return request({
    url: prePath + '/depotStorage/part',
    method: 'get',
    params,
  })
}

//打印采购单
export function printReceive(id) {
  return request({
    url: prePath + `/receivings/${id}/print`,
    method: 'get',
  })
}

//消耗获取一条打印数据
export function getReceivingOrderPrint(data) {
  return request({
    url: prePath + '/receivings/print',
    method: 'post',
    data,
  })
}

//打印到货验收单
export function printCheckOrder(id) {
  return request({
    url: prePath + `/receivings/${id}/printCheckOrder`,
    method: 'get',
  })
}

//导出采购单
export function exportExcelReceivingOrder(data) {
  return request({
    url: prePath + `/receivings/excel`,
    method: 'post',
    responseType: 'blob',
    data,
  })
}

//获取收货单分页
export function getBillRelatedPage(params) {
  return request({
    url: prePath + '/receivings/billRelatedPage',
    method: 'get',
    params,
  })
}

//获取收货单分页（其他入库）
export function getOtherStoreOrdersBillRelatedPage(params) {
  return request({
    url: prePath + '/otherStoreOrders/billRelatedPage',
    method: 'get',
    params,
  })
}

//获取收货单
export function getReceivingOrderById(id) {
  return request({
    url: prePath + '/receivings/' + id,
    method: 'get',
  })
}

//创建收货单
export function createReceivingOrder(data) {
  return request({
    url: prePath + '/receivings',
    method: 'post',
    data,
  })
}

//批量校验收货单明细
export function batchValidateReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/batchValidate',
    method: 'post',
    data,
  })
}

//获取收货单分页
export function getReceivingOrderPage(params) {
  return request({
    url: prePath + '/receivings/page',
    method: 'get',
    params,
  })
}

//获取收货单全部明细
export function receivingDetailsCustomizeListPage(data) {
  return request({
    url: prePath + '/receivingDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function receivingDetailsCustomizeListAll(data) {
  return request({
    url: prePath + '/receivingDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getReceivingDetailsList(data) {
  return request({
    url: prePath + '/receivingDetails/getDetailList',
    method: 'post',
    data,
  })
}

export function receivingDetailsById(id) {
  return request({
    url: prePath + '/receivingDetails/' + id,
    method: 'get',
  })
}

export function receivingDetailsCustomizeGroups(data) {
  return request({
    url: prePath + '/receivingDetails/customizeGroups',
    method: 'post',
    data,
  })
}

export function exportExcelReceivingOrderDetail(data) {
  return request({
    url: prePath + '/receivingDetails/excel',
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

//收货单详情获取
export function getReceivingOrderId(id) {
  return request({
    url: prePath + '/receivings/receivingOrderId/' + id,
    method: 'get',
  })
}

export function deleteReceivingOrder(data) {
  return request({
    url: prePath + '/receivings',
    method: 'delete',
    data,
  })
}

//更新收货单
export function updateReceivingOrder(data) {
  return request({
    url: prePath + '/receivings',
    method: 'put',
    data,
  })
}

//撤回收货单
export function revokeReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/revoke',
    method: 'post',
    data,
  })
}
export function pendStoreRevokeReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/pendStoreRevoke',
    method: 'post',
    data,
  })
}
//更新收货单
export function submitReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/submit',
    method: 'post',
    data,
  })
}

export function checkReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/check',
    method: 'post',
    data,
  })
}
export function rejectReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/reject',
    method: 'post',
    data,
  })
}

//收货单入库
export function storageReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/storage',
    method: 'post',
    data,
  })
}

//取消上架
export function cancelPut(data) {
  return request({
    url: prePath + '/receivings/cancelPut',
    method: 'post',
    data,
  })
}

//收货单入库
export function stockAndTransferReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/stockAndTransfer',
    method: 'post',
    data,
  })
}
//收货单入库并上架
export function stockAndPutShelfReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/stockAndPutShelf',
    method: 'post',
    data,
  })
}

//收货单作废
export function invalidReceivingOrder(data) {
  return request({
    url: prePath + '/receivings/invalid',
    method: 'post',
    data,
  })
}

// 收货单整单打印二维码
export function receivingPrintQrCode(data) {
  return request({
    url: prePath + '/receivings/printQrCode',
    method: 'post',
    data,
  })
}

// 收货单单行打印二维码
export function receivingPrintSingleQrCode(data) {
  return request({
    url: prePath + '/receivingDetails/printQrCode',
    method: 'post',
    data,
  })
}

//收货单自定义分页
export function getReceivingOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/receivings/customizeList/page',
    method: 'post',
    data,
  })
}

//收货单自定义
export function getReceivingOrderCustomizeListAll(data) {
  return request({
    url: prePath + '/receivings/customizeList/all',
    method: 'post',
    data,
  })
}

//收货单明细 自定义page
export function getReceivingOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/receivingDetails/customizeList/page',
    method: 'post',
    data,
  })
}

//收货单明细 自定义
export function getReceivingOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/receivingDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getReceivingOrderDetailCustomizeGroups(data) {
  return request({
    url: prePath + '/receivingDetails/customizeGroups',
    method: 'post',
    data,
  })
}

//根据采购单id生成收货单展示给前端
export function frontReceivingOrderByPurchOrderId(purchOrderId) {
  return request({
    url: prePath + '/receivings/front/purchOrder/' + purchOrderId,
    method: 'get',
  })
}

//发货单生成收获的
export function getReceivingDetailByDeliver(data) {
  return request({
    url: prePath + '/receivings/getReceivingDetailByDeliver',
    method: 'post',
    data,
  })
}

//发货单生成收获的
export function getReceivingIndividualByDeliver(data) {
  return request({
    url: prePath + '/receivings/getReceivingIndividualByDeliver',
    method: 'post',
    data,
  })
}

//************  移库管理
export function getTransferOrderCustomizeList(data) {
  return request({
    url: prePath + '/transfers/customizeList/page',
    method: 'post',
    data,
  })
}

export function getTransferOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/transferDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getTransferOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/transferDetails/customizeList/page',
    method: 'post',
    data,
  })
}

//领用出库单撤回
export function validateRevoke(data) {
  return request({
    url: prePath + '/transfers/validateRevoke',
    method: 'post',
    data,
  })
}

//获取移库单分页
export function detailTransferOrder(id) {
  return request({
    url: prePath + '/transfers/' + id,
    method: 'get',
  })
}

//获取具体领用退回申请单
export function getTransferOrderFromRevoke(id) {
  return request({
    url: prePath + `/transfers/generateRevokeTransfer/${id}`,
    method: 'get',
  })
}

//删除移库单
export function removeTransferOrder(data) {
  return request({
    url: prePath + '/transfers',
    method: 'delete',
    data,
  })
}

//创建移库单
export function createTransferOrder(data) {
  return request({
    url: prePath + '/transfers',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createTransferOrderAndSave(data) {
  return request({
    url: prePath + '/transfers/saveAndSubmit',
    method: 'post',
    data,
  })
}

//更新移库单
export function updateTransferOrder(data) {
  return request({
    url: prePath + '/transfers',
    method: 'put',
    data,
  })
}

//提交移库单
export function submitTransferOrder(data) {
  return request({
    url: prePath + '/transfers/submit',
    method: 'post',
    data,
  })
}
//审核移库单
export function checkTransferOrder(data) {
  return request({
    url: prePath + '/transfers/check',
    method: 'post',
    data,
  })
}

//驳回移库单
export function rejectTransferOrder(data) {
  return request({
    url: prePath + '/transfers/reject',
    method: 'post',
    data,
  })
}

// 移库单移库
export function transferTransferOrder(data) {
  return request({
    url: prePath + '/transfers/transfer',
    method: 'post',
    data,
  })
}
// 移库单移库并且上架
export function transferAndPutShelf(data) {
  return request({
    url: prePath + '/transfers/transferAndPutShelf',
    method: 'post',
    data,
  })
}

// 移库单打印二维码
export function transfersPrintQrCode(data) {
  return request({
    url: prePath + '/transfers/printQrCode',
    method: 'post',
    data,
  })
}

// 移库单移库
export function transferHospitalOrder(data) {
  return request({
    url: prePath + '/transfers/transferHospital',
    method: 'post',
    data,
  })
}

// 消耗移库
export function tallyTransferOrder(data) {
  return request({
    url: prePath + '/transfers/tally',
    method: 'post',
    data,
  })
}

// 移库取消上架
export function transferCancelPut(data) {
  return request({
    url: prePath + '/transfers/cancelPut',
    method: 'post',
    data,
  })
}

//撤销移库单
export function revokeTransferOrder(data) {
  return request({
    url: prePath + '/transfers/revoke',
    method: 'post',
    data,
  })
}

//批量校验
export function batchValidateTransferOrder(data) {
  return request({
    url: prePath + '/transfers/batchValidate',
    method: 'post',
    data,
  })
}

//------------------------------
//获取移库单明细所有
export function getTransferOrderDetailAll(params) {
  return request({
    url: prePath + '/transferDetails/all',
    method: 'get',
    params,
  })
}

export function transferOrderDetailsCustomizeListAll(data) {
  return request({
    url: prePath + '/transferDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function transferOrderDetailsCustomizeListForRevokeAll(data) {
  return request({
    url: prePath + '/transferDetails/customizeListForRevoke/all',
    method: 'post',
    data,
  })
}

export function transferOrderDetailsCustomizeListPage(data) {
  return request({
    url: prePath + '/transferDetails/customizeList/page',
    method: 'post',
    data,
  })
}

//获取移库单{id}
export function getTransferById(id) {
  return request({
    url: prePath + '/transfers/' + id,
    method: 'get',
  })
}

//获取移库单{id}
export function getTransferOrderDetailsCanGenerateDetail(id) {
  return request({
    url: prePath + '/transfers/' + id,
    method: 'get',
  })
}

//创建消耗单
export function createConsumeOrder(data) {
  return request({
    url: prePath + '/consumes',
    method: 'post',
    data,
  })
}
//消耗获取一条打印数据
export function getConsumePrint(data) {
  return request({
    url: prePath + '/consumes/print',
    method: 'post',
    data,
  })
}

//其他入库详情页打印数据
export function getOtherStorePrint(data) {
  return request({
    url: prePath + '/otherStoreOrders/print',
    method: 'post',
    data,
  })
}
//其他出库详情页打印数据
export function getOtherExportPrint(data) {
  return request({
    url: prePath + '/otherExportOrders/print',
    method: 'post',
    data,
  })
}

//报废出库详情页打印数据
export function getScrapExportPrint(data) {
  return request({
    url: prePath + '/scrapExportOrders/print',
    method: 'post',
    data,
  })
}

//库存盘点打印盘点表
export function getInventoryOrderOfflinePrint(data) {
  return request({
    url: prePath + '/inventories/offlinePrint',
    method: 'post',
    data,
  })
}
//库存盘点打印盘点表（总数）
export function getInventoryOrderOfflineSimplePrint(data) {
  return request({
    url: prePath + '/inventories/offlineSimplePrint',
    method: 'post',
    data,
  })
}

//库存盘点损益详情页打印数据
export function getInventoryOrderPrint(data) {
  return request({
    url: prePath + '/inventories/print',
    method: 'post',
    data,
  })
}

export function getSubInventoryOrderPrint(data) {
  return request({
    url: prePath + '/subInventoryOrder/print',
    method: 'post',
    data,
  })
}

//盘点出库详情页打印数据
export function getInventoryAndExportPrint(data) {
  return request({
    url: prePath + '/inventoryExportOrders/print',
    method: 'post',
    data,
  })
}

//盘点入库详情页打印数据
export function getInventoryAndStoragePrint(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/print',
    method: 'post',
    data,
  })
}

//更新消耗单
export function updateConsumeOrder(data) {
  return request({
    url: prePath + '/consumes',
    method: 'put',
    data,
  })
}

//消耗明细查询
export function detailConsumeOrder(id) {
  return request({
    url: prePath + '/consumes/' + id,
    method: 'get',
  })
}

//消耗明细全部查询
export function detailConsumeDetailsAll(params) {
  return request({
    url: prePath + '/consumeDetails/all',
    method: 'get',
    params,
  })
}

export function getConsumeOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/consumes/customizeList/page',
    method: 'post',
    data,
  })
}

export function getConsumeOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/consumeDetails/customizeList/page',
    method: 'post',
    data,
  })
}
export function getConsumeOrderDetailBatchRevokeCustomizeListPage(data) {
  return request({
    url: prePath + '/consumeDetails/batchRevoke/customizeList/page',
    method: 'post',
    data,
  })
}
export function getConsumeOrderDetailBatchRevokeSingleCustomizeListPage(data) {
  return request({
    url: prePath + '/consumeDetails/batchRevokeSingle/customizeList/page',
    method: 'post',
    data,
  })
}

export function getConsumeOrderDetailCustomizeListSumAmount(data) {
  return request({
    url: prePath + '/consumeDetails/customizeList/sumAount',
    method: 'post',
    data,
  })
}

export function getConsumeOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/consumeDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getConsumeDetailsCustomizeGroups(data) {
  //消耗获取分组
  return request({
    url: prePath + '/consumeDetails/customizeGroups',
    method: 'post',
    data,
  })
}

// 查询消耗记录个体详情分页
export function getConsumeOrderDetailExtPage(params) {
  return request({
    url: prePath + '/consumeOrderDetailExt/page',
    method: 'get',
    params,
  })
}

// 查询消耗记录个体详情不分页
export function getConsumeOrderDetailExtAll(params) {
  return request({
    url: prePath + '/consumeOrderDetailExt/all',
    method: 'get',
    params,
  })
}

//获取收货单全部明细
export function getConsumeOrderDetailAll(params) {
  return request({
    url: prePath + '/consumeDetails/all',
    method: 'get',
    params,
  })
}

//无痕整单撤销消耗单
export function revokeConsumeOrder(id) {
  return request({
    url: prePath + '/consumes/revoke/' + id,
    method: 'post',
  })
}
//无痕个体撤销消耗
export function revokeConsumeOrderDetail(data) {
  return request({
    url: prePath + '/consumeDetails/revoke/',
    method: 'post',
    data,
  })
}

//打印消耗详情单
export function printConsumeOrder(id) {
  return request({
    url: prePath + `/consumes/${id}/print`,
    method: 'get',
  })
}

//导出消耗详情单
export function exportExcelConsumeOrder(data) {
  return request({
    url: prePath + `/consumes/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

//导出消耗详情单
export function exportExcelConsumeDetailOrder(data) {
  return request({
    url: prePath + `/consumeDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//打印消耗明细单
export function printConsumeDetailOrder(data) {
  return request({
    url: prePath + `/consumeDetails/printDetailList`,
    method: 'POST',
    data,
  })
}
//导出
export function excelDetailListPendConfirmConsumeDetail(data) {
  return request({
    url: prePath + `/pendConfirmConsumeDetail/excelDetailList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//打印
export function printDetailListPendConfirmConsumeDetail(data) {
  return request({
    url: prePath + '/pendConfirmConsumeDetail/printDetailList',
    method: 'post',
    data,
  })
}
//批量校验
export function batchValidateConsumeOrder(data) {
  return request({
    url: prePath + '/consumes/batchValidate',
    method: 'post',
    data,
  })
}
//一键移库接口
export function oneKeyTransferReceivingsById(id) {
  return request({
    url: prePath + '/receivings/oneKeyTransfer/' + id,
    method: 'get',
  })
}
export function receivingImportTransfers(id) {
  return request({
    url: prePath + '/transfers/receivingImport/' + id,
    method: 'get',
  })
}
export function oneKeyTransferReceivings(data) {
  return request({
    url: prePath + '/receivings/oneKeyTransfer',
    method: 'post',
    data,
  })
}
//------------------------------
//单分页
export function getInventoryOrderPage(params) {
  return request({
    url: prePath + '/inventories/page',
    method: 'get',
    params,
  })
}

//根据{id}获取一条获取盘点数据id
export function getInventoryOrderById(id) {
  return request({
    url: prePath + '/inventories/' + id,
    method: 'get',
  })
}

//创建盘点单
export function createInventoryOrder(data) {
  return request({
    url: prePath + '/inventories',
    method: 'post',
    data,
  })
}

//创建设备盘点单
export function createInventoryDeviceOrder(data) {
  return request({
    url: prePath + '/inventories/device',
    method: 'post',
    data,
  })
}

// 手工盘点,导出盘点表
export function inventoriesOfflineExcel(id) {
  return request({
    url: prePath + `/inventories/${id}/offline/excel`,
    responseType: 'blob',
    method: 'get',
  })
}

// 手工盘点,打印盘点表
export function inventoriesOfflinePrint(id) {
  return request({
    url: prePath + `/inventories/${id}/offline/print`,
    method: 'get',
  })
}

//手工盘点,只按产品统计总数量，不管批号效期
export function inventoriesOfflineSimplePrint(id) {
  return request({
    url: prePath + `/inventories/${id}/offline/simplePrint`,
    method: 'get',
  })
}

// 盘点解锁
export function inventoriesUnLockStock(data) {
  return request({
    url: prePath + '/inventories/unLockStock',
    method: 'post',
    data,
  })
}

//打印设备盘点单
export function printDevicenventories(id) {
  return request({
    url: prePath + `/inventories/${id}/devicePrint`,
    method: 'get',
  })
}

//打印移库单
export function printTransferOrder(id) {
  return request({
    url: prePath + `/transfers/${id}/print`,
    method: 'get',
  })
}

//打印移库单
export function getTransferOrderPrint(data) {
  return request({
    url: prePath + '/transfers/print',
    method: 'post',
    data,
  })
}

//导出移库单
export function exportExcelTransferOrder(data) {
  return request({
    url: prePath + `/transfers/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

//导出移库单
export function exportExcelTransferOrderDetail(data) {
  return request({
    url: prePath + `/transferDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

//更新盘点单
export function updateInventoryOrder(data) {
  return request({
    url: prePath + '/inventories',
    method: 'put',
    data,
  })
}

//删除设备盘点单
export function deleteinventories(data) {
  return request({
    url: prePath + '/inventories',
    method: 'delete',
    data,
  })
}

//更新设备盘点单
export function updateInventoryDeviceOrder(data) {
  return request({
    url: prePath + '/inventories/device',
    method: 'put',
    data,
  })
}

//出库单流水
export function depotAffairAll(params) {
  return request({
    url: prePath + '/depotAffair/all',
    method: 'get',
    params,
  })
}

//盘点单锁库
export function inventoryOrderLockStock(data) {
  return request({
    url: prePath + '/inventories/lockStock',
    method: 'post',
    data,
  })
}

//盘点单锁库,针对设备盘点
export function inventoryDeviceLockStock(data) {
  return request({
    url: prePath + '/inventories/lockDeviceStock',
    method: 'post',
    data,
  })
}

//获取主盘点单明细全部
export function getInventoryDetailsAll(params) {
  return request({
    url: prePath + '/inventoryDetails/simpleBean/all',
    method: 'get',
    params,
  })
}

// 主盘点单打印
export function inventoriesPrint(id) {
  return request({
    url: prePath + `/inventories/${id}/print`,
    method: 'get',
  })
}

// 主盘点线上导出
export function inventoriesExcel(data) {
  return request({
    url: prePath + `/inventories/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 主盘点线下导出
export function inventoriesNotOnlineExcel(data) {
  return request({
    url: prePath + `/inventories/OfflineExcel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

//获取设备盘点单明细全部
export function getInventoryDeviceDetailsAll(params) {
  return request({
    url: prePath + '/inventoryDeviceDetail/all',
    method: 'get',
    params,
  })
}

//搜索设备盘点单明细全部
export function searchInventoryDeviceDetailsAll(params) {
  return request({
    url: prePath + '/inventoryDeviceDetail/searchAll',
    method: 'get',
    params,
  })
}

//扫码盘点
export function searchByCode(params) {
  return request({
    url: prePath + '/inventoryDeviceDetail/searchByCode',
    method: 'get',
    params,
  })
}

//盘点单处理差异
export function inventoryOrderProcessDiff(id) {
  return request({
    url: prePath + '/inventories/processDiff/' + id,
    method: 'post',
  })
}

//盘点资产提交
export function inventoryDeviceSubmit(data) {
  return request({
    url: prePath + '/inventories/submit',
    method: 'post',
    data,
  })
}

//查询损益明细全部
export function getProfitLossDetailsAll(params) {
  return request({
    url: prePath + '/profitLossDetails/all',
    method: 'get',
    params,
  })
}

//--------------------报废出库-----------开始
//通过自定义进行查询
export function getScrapExportOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/scrapExportOrders/customizeList/page',
    method: 'post',
    data,
  })
}
export function scrapExportOrderscancelAudit(data) {
  return request({
    url: prePath + '/scrapExportOrders/cancelAudit',
    method: 'post',
    data,
  })
}
//通过自定义进行查询
export function getScrapExportOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/scrapExportOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

//通过自定义进行查询
export function getScrapExportOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/scrapExportOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function getScrapExportOrderDetailsCustomizeGroups(data) {
  //报废出库获取分组
  return request({
    url: prePath + '/scrapExportOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}

//获取报废出库单分页
export function getScrapExportOrderPage(params) {
  return request({
    url: prePath + '/scrapExportOrders/page',
    method: 'get',
    params,
  })
}

//批量校验报废出库单明细
export function batchValidateScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders/batchValidate',
    method: 'post',
    data,
  })
}

//获取报废出库单分页
export function detailScrapExportOrder(id) {
  return request({
    url: prePath + '/scrapExportOrders/' + id,
    method: 'get',
  })
}

//删除报废出库单
export function removeScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders',
    method: 'delete',
    data,
  })
}

//创建报废出库单
export function createScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders',
    method: 'post',
    data,
  })
}
export function createScrapExportOrderAndSave(data) {
  return request({
    url: prePath + '/scrapExportOrders/saveAndSubmit',
    method: 'post',
    data,
  })
}

//更新报废出库单
export function updateScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders',
    method: 'put',
    data,
  })
}

//提交报废出库单
export function submitScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders/submit',
    method: 'post',
    data,
  })
}

//打印报废出库单
export function printScrapExportOrder(id) {
  return request({
    url: prePath + `/scrapExportOrders/${id}/print`,
    method: 'get',
  })
}

//导出报废出库单
export function exportExcelScrapExportOrder(data) {
  return request({
    url: prePath + `/scrapExportOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//导出报废出库单明细页
export function exportExcelScrapExportOrderDetail(data) {
  return request({
    url: prePath + `/scrapExportOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 报废出库单出库
export function executeScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders/execute',
    method: 'post',
    data,
  })
}

//撤销报废出库单
export function revokeScrapExportOrder(data) {
  return request({
    url: prePath + '/scrapExportOrders/revoke',
    method: 'post',
    data,
  })
}

//获取报废出库单明细所有
export function getScrapExportOrderDetailAll(params) {
  return request({
    url: prePath + '/scrapExportOrderDetails/all',
    method: 'get',
    params,
  })
}

//************  其他出库
export function getOtherExportOrderPage(data) {
  return request({
    url: prePath + '/otherExportOrders/customizeList/page',
    method: 'post',
    data,
  })
}

//选择个体
export function useOtherDetailExtGetUnityData(params) {
  return request({
    url: prePath + `/otherExportOrderDetailExt/getUnityData`,
    method: 'get',
    params,
  })
}

export function batchValidateOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailOtherExportOrder(id) {
  return request({
    url: prePath + '/otherExportOrders/' + id,
    method: 'get',
  })
}

export function removeOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders',
    method: 'delete',
    data,
  })
}

export function createOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders',
    method: 'post',
    data,
  })
}
export function createOtherExportOrderAndSave(data) {
  return request({
    url: prePath + '/otherExportOrders/saveAndSubmit',
    method: 'post',
    data,
  })
}

export function updateOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders',
    method: 'put',
    data,
  })
}

export function submitOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders/submit',
    method: 'post',
    data,
  })
}

export function printOtherExportOrder(id) {
  return request({
    url: prePath + `/otherExportOrders/${id}/print`,
    method: 'get',
  })
}

export function exportExcelOtherExportOrder(data) {
  return request({
    url: prePath + `/otherExportOrders/excel/`,
    method: 'post',
    responseType: 'blob',
    data,
  })
}

export function exportOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeOtherExportOrder(data) {
  return request({
    url: prePath + '/otherExportOrders/revoke',
    method: 'post',
    data,
  })
}

export function getOtherExportOrderDetailAll(params) {
  return request({
    url: prePath + '/otherExportOrderDetails/all',
    method: 'get',
    params,
  })
}

//************  其他入库
export function getOtherStoreOrderPage(params) {
  return request({
    url: prePath + '/otherStoreOrders/page',
    method: 'get',
    params,
  })
}

export function getOtherStoreOrderCustomizeList(data) {
  return request({
    url: prePath + '/otherStoreOrders/customizeList/page',
    method: 'post',
    data,
  })
}

export function getOtherStoreOrderDetailCustomizeList(data) {
  return request({
    url: prePath + '/otherStoreOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getOtherStoreOrderDetailCustomizeListPage(data) {
  return request({
    url: prePath + '/otherStoreOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function batchValidateOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailOtherStoreOrder(id) {
  return request({
    url: prePath + '/otherStoreOrders/' + id,
    method: 'get',
  })
}

export function removeOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders',
    method: 'delete',
    data,
  })
}

export function createOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders',
    method: 'post',
    data,
  })
}
export function createOtherStoreOrderAndSave(data) {
  return request({
    url: prePath + '/otherStoreOrders/saveAndSubmit',
    method: 'post',
    data,
  })
}

export function updateOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders',
    method: 'put',
    data,
  })
}

export function submitOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders/submit',
    method: 'post',
    data,
  })
}

export function printOtherStoreOrder(id) {
  return request({
    url: prePath + `/otherStoreOrders/${id}/print`,
    method: 'get',
  })
}

// 其他入库导出
export function exportExcelOtherStoreOrder(data) {
  return request({
    url: prePath + `/otherStoreOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
// 其他入库导出明细
export function exportExcelOtherStoreOrderDetail(data) {
  return request({
    url: prePath + `/otherStoreOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

export function executeOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeOtherStoreOrder(data) {
  return request({
    url: prePath + '/otherStoreOrders/revoke',
    method: 'post',
    data,
  })
}

export function getOtherStoreOrderDetailAll(params) {
  return request({
    url: prePath + '/otherStoreOrderDetails/all',
    method: 'get',
    params,
  })
}

export function getOtherStoreOrderDetailAllForUpdate(params) {
  return request({
    url: prePath + '/otherStoreOrderDetails/allForUpdate',
    method: 'get',
    params,
  })
}

export function getReceivingDetailsCanGenerateDetail(params) {
  //移库选择采购入库的明细
  return request({
    url: prePath + '/receivingDetails/canGenerateDetail',
    method: 'get',
    params,
  })
}

export function getOtherStoreOrderDetailsCanGenerateDetail(params) {
  //移库选择其他入库的明细
  return request({
    url: prePath + '/otherStoreOrderDetails/canGenerateDetail',
    method: 'get',
    params,
  })
}

export function getDepotStorageProducts(params) {
  return request({
    url: prePath + '/depotStorage/products',
    method: 'get',
    params,
  })
}

//打印二维码
export function otherStorePrintQrCode(data) {
  return request({
    url: prePath + '/otherStoreOrders/printQrCode',
    method: 'post',
    data,
  })
}

//打印二维码
export function otherStorePrintSingleQrCode(data) {
  return request({
    url: prePath + '/otherStoreOrders/printSingleQrCode',
    method: 'post',
    data,
  })
}

export function otherStoreOrderDetailsPrintQrCodeVO(data) {
  return request({
    url: prePath + '/otherStoreOrderDetails/printQrCodeVO',
    method: 'post',
    data,
  })
}

//************  其他入库模板
export function getOtherStoreTemplatesPage(params) {
  //分页查询
  return request({
    url: prePath + '/otherStoreTemplates/page',
    method: 'get',
    params,
  })
}

export function getOtherStoreTemplatesCustomizeList(data) {
  return request({
    url: prePath + '/otherStoreTemplates/customizeList/page',
    method: 'post',
    data,
  })
}

export function getOtherStoreTemplatesById(id) {
  return request({
    url: prePath + '/otherStoreTemplates/' + id,
    method: 'get',
  })
}

export function getOtherStoreTemplateDetailsAll(params) {
  return request({
    url: prePath + '/otherStoreTemplateDetails/merge',
    method: 'get',
    params,
  })
}

export function getOtherStoreTemplateDetailCustomizeList(data) {
  return request({
    url: prePath + '/otherStoreTemplateDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getOtherStoreTemplateDetailCustomizeGroups(data) {
  //其他出库获取分组
  return request({
    url: prePath + '/otherStoreTemplateDetails/customizeGroups',
    method: 'post',
    data,
  })
}

export function getOtherStoreTemplateDetailCustomizePage(data) {
  return request({
    url: prePath + '/otherStoreTemplateDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function removeOtherStoreTemplates(data) {
  //删除
  return request({
    url: prePath + '/otherStoreTemplates',
    method: 'delete',
    data,
  })
}

export function updateOtherStoreTemplates(data) {
  return request({
    url: prePath + '/otherStoreTemplates',
    method: 'put',
    data,
  })
}

export function creatOtherStoreTemplates(data) {
  return request({
    url: prePath + '/otherStoreTemplates',
    method: 'post',
    data,
  })
}

//************  借出出库
export function getLendExportOrderPage(params) {
  return request({
    url: prePath + '/lendExportOrders/page',
    method: 'get',
    params,
  })
}

export function batchValidateLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailLendExportOrder(id) {
  return request({
    url: prePath + '/lendExportOrders/' + id,
    method: 'get',
  })
}

export function removeLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders',
    method: 'delete',
    data,
  })
}

export function createLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders',
    method: 'post',
    data,
  })
}

export function updateLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders',
    method: 'put',
    data,
  })
}

export function submitLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders/submit',
    method: 'post',
    data,
  })
}

export function printLendExportOrder(id) {
  return request({
    url: prePath + `/lendExportOrders/${id}/print`,
    method: 'get',
  })
}

export function lendStorePrintQrCode(data) {
  return request({
    url: prePath + `/lendStoreOrders/printQrCode`,
    method: 'post',
    data: data,
  })
}

export function lendStorePrintSingleQrCode(data) {
  return request({
    url: prePath + '/lendStoreOrders/printSingleQrCode',
    method: 'post',
    data,
  })
}

export function exportExcelLendExportOrder(id, filename = '借出出库单') {
  return request({
    url: prePath + `/lendExportOrders/${id}/excel/${filename}`,
    method: 'get',
    responseType: 'blob',
  })
}

export function exportLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeLendExportOrder(data) {
  return request({
    url: prePath + '/lendExportOrders/revoke',
    method: 'post',
    data,
  })
}

export function getLendExportOrderDetailAll(params) {
  return request({
    url: prePath + '/lendExportOrderDetails/all',
    method: 'get',
    params,
  })
}

//************  借入入库
export function getLendStoreOrderPage(params) {
  return request({
    url: prePath + '/lendStoreOrders/page',
    method: 'get',
    params,
  })
}

export function batchValidateLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailLendStoreOrder(id) {
  return request({
    url: prePath + '/lendStoreOrders/' + id,
    method: 'get',
  })
}

export function removeLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders',
    method: 'delete',
    data,
  })
}

export function createLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders',
    method: 'post',
    data,
  })
}

export function updateLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders',
    method: 'put',
    data,
  })
}

export function submitLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders/submit',
    method: 'post',
    data,
  })
}

export function printLendStoreOrder(id) {
  return request({
    url: prePath + `/lendStoreOrders/${id}/print`,
    method: 'get',
  })
}

export function exportExcelLendStoreOrder(id, filename = '借入入库单') {
  return request({
    url: prePath + `/lendStoreOrders/${id}/excel/${filename}`,
    method: 'get',
    responseType: 'blob',
  })
}

export function executeLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeLendStoreOrder(data) {
  return request({
    url: prePath + '/lendStoreOrders/revoke',
    method: 'post',
    data,
  })
}

export function getLendStoreOrderDetailAll(params) {
  return request({
    url: prePath + '/lendStoreOrderDetails/all',
    method: 'get',
    params,
  })
}

//************  还出出库
export function getReturnExportOrderPage(params) {
  return request({
    url: prePath + '/returnExportOrders/page',
    method: 'get',
    params,
  })
}

export function batchValidateReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailReturnExportOrder(id) {
  return request({
    url: prePath + '/returnExportOrders/' + id,
    method: 'get',
  })
}

export function removeReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders',
    method: 'delete',
    data,
  })
}

export function createReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders',
    method: 'post',
    data,
  })
}

export function updateReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders',
    method: 'put',
    data,
  })
}

export function submitReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders/submit',
    method: 'post',
    data,
  })
}

export function printReturnExportOrder(id) {
  return request({
    url: prePath + `/returnExportOrders/${id}/print`,
    method: 'get',
  })
}

export function exportExcelReturnExportOrder(id, filename = '还出出库单') {
  return request({
    url: prePath + `/returnExportOrders/${id}/excel/${filename}`,
    method: 'get',
    responseType: 'blob',
  })
}

export function exportReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeReturnExportOrder(data) {
  return request({
    url: prePath + '/returnExportOrders/revoke',
    method: 'post',
    data,
  })
}

export function getReturnExportOrderDetailAll(params) {
  return request({
    url: prePath + '/returnExportOrderDetails/all',
    method: 'get',
    params,
  })
}

//************  还入入库
export function getReturnStoreOrderPage(params) {
  return request({
    url: prePath + '/returnStoreOrders/page',
    method: 'get',
    params,
  })
}

export function batchValidateReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders/batchValidate',
    method: 'post',
    data,
  })
}

export function detailReturnStoreOrder(id) {
  return request({
    url: prePath + '/returnStoreOrders/' + id,
    method: 'get',
  })
}

export function removeReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders',
    method: 'delete',
    data,
  })
}

export function returnStorePrintQrCode(data) {
  return request({
    url: prePath + `/returnStoreOrders/printQrCode`,
    method: 'post',
    data: data,
  })
}

export function returnStorePrintSingleQrCode(data) {
  return request({
    url: prePath + '/returnStoreOrders/printSingleQrCode',
    method: 'post',
    data,
  })
}

export function createReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders',
    method: 'post',
    data,
  })
}

export function updateReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders',
    method: 'put',
    data,
  })
}

export function submitReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders/submit',
    method: 'post',
    data,
  })
}

export function printReturnStoreOrder(id) {
  return request({
    url: prePath + `/returnStoreOrders/${id}/print`,
    method: 'get',
  })
}

export function exportExcelReturnStoreOrder(id, filename = '还入入库单') {
  return request({
    url: prePath + `/returnStoreOrders/${id}/excel/${filename}`,
    method: 'get',
    responseType: 'blob',
  })
}

export function executeReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders/execute',
    method: 'post',
    data,
  })
}

export function revokeReturnStoreOrder(data) {
  return request({
    url: prePath + '/returnStoreOrders/revoke',
    method: 'post',
    data,
  })
}

export function getReturnStoreOrderDetailAll(params) {
  return request({
    url: prePath + '/returnStoreOrderDetails/all',
    method: 'get',
    params,
  })
}

//根据借出出库id生成还入入库单
export function generateReturnStoreOrderByLendExportId(lendExportId) {
  return request({
    url:
      prePath + '/returnStoreOrders/generate/lendExportOrder/' + lendExportId,
    method: 'get',
  })
}

//根据借出出库id生成还入入库单
export function generateReturnExportOrderByLendStoreId(lendStoreId) {
  return request({
    url: prePath + '/returnExportOrders/generate/lendStoreOrder/' + lendStoreId,
    method: 'get',
  })
}

//获取借入入库单的产品列表
export function getLendStoreOrderProductList(params) {
  return request({
    url: prePath + '/lendStoreOrderDetails/products',
    method: 'get',
    params,
  })
}

//获取借出出库单的产品列表
export function getLendExportOrderProductList(params) {
  return request({
    url: prePath + '/lendExportOrderDetails/products',
    method: 'get',
    params,
  })
}

// 移库个体详情
export function getDepotStorageByUnityCodePage(data) {
  return request({
    url: prePath + '/depotStorage/getDepotStorageByUnityCodePage',
    method: 'post',
    data,
  })
}

// 其他入库个体详情
export function getUnityOtherStoreOrderDetails(params) {
  return request({
    url: prePath + '/otherStoreOrderDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

// 借入入库个体详情
export function getLendStoreUnitDetail(params) {
  return request({
    url: prePath + '/lendStoreOrderDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

// 还入入库个体详情
export function getReturnStoreOrderDetails(params) {
  return request({
    url: prePath + '/returnStoreOrderDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

// 损耗个体详情
export function getInventoryDetailsDetails(params) {
  return request({
    url: prePath + '/inventoryDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

/* 查询库存盘点个体码 */
export function getDepotInventoryExt(params) {
  return request({
    url: prePath + '/inventoryOrderDetailExt/all',
    method: 'get',
    params,
  })
}

// 查询库存产品个体码列表不分页
export function getDepotStorageByUnityCodeAll(data) {
  return request({
    url: prePath + '/depotStorage/getDepotStorageByUnityCodeAll',
    method: 'post',
    data,
  })
}

// 实时库存个体详情
export function getDepotStorageExt(params) {
  return request({
    url: prePath + '/depotStock/page',
    method: 'get',
    params,
  })
}

// 实时库存个体详情
export function getDepotStorageExtPost(data) {
  return request({
    url: prePath + '/depotStock/page',
    method: 'post',
    data,
  })
}

// 实时库存个体详情-包含库存为0待入库数量不为0
export function getDepotStorageExtWithPend(params) {
  return request({
    url: prePath + '/depotStorageExt/pageWithPend',
    method: 'get',
    params,
  })
}

// 实时库存个体详情
export function getDepotStorageExtById(id) {
  return request({
    url: prePath + '/depotStorageExt/' + id,
    method: 'get',
  })
}

// 实时库存个体详情
export function getDepotStorageExtAll(params) {
  return request({
    url: prePath + '/depotStorageExt/all',
    method: 'get',
    params,
  })
}

// 消耗等级个体详情
export function getDepotStorageExtAllForMultTime(params) {
  return request({
    url: prePath + '/depotStorageExt/allForMultTime',
    method: 'get',
    params,
  })
}

// 出库选择个体
export function getDepotStorageByQuery(params) {
  return request({
    url: prePath + '/depotStorage/getDepotStorageByQuery',
    method: 'get',
    params,
  })
}

//其他出库扫主码从码
export function depotStorageScans(params) {
  return request({
    url: prePath + '/depotStorage/scans',
    method: 'get',
    params,
  })
}

//收货单详情获取
export function getReceivingUnityDetail(params) {
  return request({
    url: prePath + '/receivingDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

//扫码收货接口
export function getReceivingsScans(data) {
  return request({
    url: prePath + '/receivings/scans',
    method: 'post',
    data,
  })
}

export function receivingsScanDeliverCode(code) {
  return request({
    url: prePath + '/receivings/scanDeliverCode/' + code,
    method: 'get',
  })
}

//扫码收货接口
export function getDepotScans(data) {
  return request({
    url: prePath + '/depotStock/scans',
    method: 'post',
    data,
  })
}

//消耗撤回使用
export function consumesCancel(id) {
  return request({
    url: prePath + `/consumes/${id}/spdUseRevoke`,
    method: 'get',
  })
}

// 手术跟台验证分页查询
export function operationProductCheckOrderPage(params) {
  return request({
    url: prePath + '/operationProductCheckOrder/page',
    method: 'get',
    params,
  })
}

// 手术跟台验证批量删除
export function operationProductCheckOrderDeleteMore(data) {
  return request({
    url: prePath + '/operationProductCheckOrder',
    method: 'delete',
    data,
  })
}

// 手术跟台验证批量提交
export function operationProductCheckOrderSubmitMore(data) {
  return request({
    url: prePath + '/operationProductCheckOrder/submit',
    method: 'post',
    data,
  })
}

// 手术跟台验证批量验证
export function operationProductCheckOrderCheckMore(data) {
  return request({
    url: prePath + '/operationProductCheckOrder/check',
    method: 'post',
    data,
  })
}

// 手术跟台验证批量撤回
export function operationProductCheckOrderRevokeMore(data) {
  return request({
    url: prePath + '/operationProductCheckOrder/revoke',
    method: 'post',
    data,
  })
}

// 手术跟台验证查询产品明细不分页
export function operationProductCheckOrderAll(params) {
  return request({
    url: prePath + '/operationProductCheckOrderDetail/all',
    method: 'get',
    params,
  })
}

// 手术跟台验证查询单据信息
export function operationProductCheckOrderDetails(id) {
  return request({
    url: prePath + '/operationProductCheckOrder/' + id,
    method: 'get',
  })
}

// 手术跟台验证新增
export function operationProductCheckOrderAdd(data) {
  return request({
    url: prePath + '/operationProductCheckOrder',
    method: 'post',
    data,
  })
}

// 手术跟台验证修改
export function operationProductCheckOrderUpdate(data) {
  return request({
    url: prePath + '/operationProductCheckOrder',
    method: 'put',
    data,
  })
}

// 部门申领产品管理分页查询产品
export function getDepotStorageByProduct(params) {
  return request({
    url: prePath + '/depotStorage/getDepotStorageByProduct',
    method: 'get',
    params,
  })
}

// 部门申领产品管理禁止领用开启领用
export function depotStorageForbidApplyStatus(data) {
  return request({
    url: prePath + '/depotStorage/forbidApplyStatus',
    method: 'post',
    data,
  })
}

export function inventoryStoreOrdersCustomizePage(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/customizeList/page',
    method: 'post',
    data,
  })
}

export function inventoryStoreOrdersCustomizeAll(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/customizeList/all',
    method: 'post',
    data,
  })
}

// 盘点入库单分页查询
export function inventoryStoreOrdersPage(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/page',
    method: 'get',
    data,
  })
}

// 盘点入库单提交
export function inventoryStoreOrdersSubmit(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/submit',
    method: 'post',
    data,
  })
}

// 盘点入库单撤销
export function inventoryStoreOrdersRevoke(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/revoke',
    method: 'post',
    data,
  })
}

// 盘点入库单入库
export function inventoryStoreOrdersExecute(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/execute',
    method: 'post',
    data,
  })
}

// 盘点入库单删除
export function inventoryStoreOrdersDelete(data) {
  return request({
    url: prePath + '/inventoryStoreOrders',
    method: 'delete',
    data,
  })
}

// 盘点入库单查询订单明细
export function inventoryStoreOrdersDetails(id) {
  return request({
    url: prePath + '/inventoryStoreOrders/' + id,
    method: 'get',
  })
}

// 盘点入库单查询订单明细产品列表
export function inventoryStoreOrdersDetailsAll(params) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/all',
    method: 'get',
    params,
  })
}

// 盘点入库整单打印二维码
//打印二维码
export function inventoryStoreOrderPrintQrCode(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/printQrCode',
    method: 'post',
    data,
  })
}

export function inventoryStoreOrderDetailsPrintQrCodeVO(data) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/printQrCodeVO',
    method: 'post',
    data,
  })
}

// 盘点入库单详情
export function inventoryStoreOrderDetailsCustomizeListAll(data) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function inventoryStoreOrderDetailsCustomizeListPage(data) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function inventoryStoreOrderDetailsCustomizeGroups(data) {
  //盘点入库单获取分组
  return request({
    url: prePath + '/inventoryStoreOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}

// 盘点入库单修改订单查询原厂码
export function getInventoryAndStoreDetailCustomizeList(data) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function batchValidateInventoryStoreOrder(data) {
  return request({
    url: prePath + '/inventoryStoreOrders/batchValidate',
    method: 'post',
    data,
  })
}

// 盘点入库单新增订单
export function inventoryStoreOrdersAdd(data) {
  return request({
    url: prePath + '/inventoryStoreOrders',
    method: 'post',
    data,
  })
}

// 盘点入库单修改订单
export function inventoryStoreOrdersUpdate(data) {
  return request({
    url: prePath + '/inventoryStoreOrders',
    method: 'put',
    data,
  })
}

// 盘点入库单订单明细个体详情
export function inventoryStoreOrderGetUnityDetail(params) {
  return request({
    url: prePath + '/inventoryStoreOrderDetails/getUnityDetail',
    method: 'get',
    params,
  })
}

// 盘点入库单明细打印
export function inventoryStoreOrdersPrint(id) {
  return request({
    url: prePath + '/inventoryStoreOrders/' + id + '/print',
    method: 'get',
  })
}

// 盘点入库单导出excel
export function exportExcelInventoryStoreOrders(data) {
  return request({
    url: prePath + `/inventoryStoreOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
//盘点入库明细页导出
export function exportExcelInventoryStoreOrdersDetail(data) {
  return request({
    url: prePath + `/inventoryStoreOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 盘点出库单分页查询
export function inventoryExportOrdersPage(data) {
  return request({
    url: prePath + '/inventoryExportOrders/customizeList/page',
    method: 'post',
    data,
  })
}

export function inventoryExportOrdersBatchValidate(data) {
  return request({
    url: prePath + '/inventoryExportOrders/batchValidate',
    method: 'post',
    data,
  })
}

// 盘点出库单提交
export function inventoryExportOrdersSubmit(data) {
  return request({
    url: prePath + '/inventoryExportOrders/submit',
    method: 'post',
    data,
  })
}

// 盘点出库单撤销
export function inventoryExportOrdersRevoke(data) {
  return request({
    url: prePath + '/inventoryExportOrders/revoke',
    method: 'post',
    data,
  })
}

// 盘点出库单出库
export function inventoryExportOrdersExecute(data) {
  return request({
    url: prePath + '/inventoryExportOrders/execute',
    method: 'post',
    data,
  })
}

// 盘点出库单删除
export function inventoryExportOrdersDelete(data) {
  return request({
    url: prePath + '/inventoryExportOrders',
    method: 'delete',
    data,
  })
}

// 盘点出库单查询订单明细
export function inventoryExportOrdersDetails(id) {
  return request({
    url: prePath + '/inventoryExportOrders/' + id,
    method: 'get',
  })
}

// 盘点出库单查询订单明细产品列表
export function inventoryExportOrdersDetailsAll(params) {
  return request({
    url: prePath + '/inventoryExportOrderDetails/all',
    method: 'get',
    params,
  })
}

// 盘点出库单详情
export function inventoryExportOrdersDetailsCustomizeAll(data) {
  return request({
    url: prePath + '/inventoryExportOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function inventoryExportOrdersDetailsCustomizePage(data) {
  return request({
    url: prePath + '/inventoryExportOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function inventoryExportOrderDetailsCustomizeGroups(data) {
  return request({
    url: prePath + '/inventoryExportOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}

// 盘点出库单修改订单查询原厂码
export function inventoryExportOrdersAllForUpdate(params) {
  return request({
    url: prePath + '/inventoryExportOrderDetails/allForUpdate',
    method: 'get',
    params,
  })
}

// 盘点出库单新增订单
export function inventoryExportOrdersAdd(data) {
  return request({
    url: prePath + '/inventoryExportOrders',
    method: 'post',
    data,
  })
}

// 盘点出库单修改订单
export function inventoryExportOrdersUpdate(data) {
  return request({
    url: prePath + '/inventoryExportOrders',
    method: 'put',
    data,
  })
}

// 盘点出库单订单明细个体详情
export function inventoryExportOrderGetUnityDetail(params) {
  return request({
    url: prePath + '/inventoryExportOrderDetailExts/getUnityData',
    method: 'get',
    params,
  })
}

// 盘点出库单明细打印
export function inventoryExportOrdersPrint(id) {
  return request({
    url: prePath + '/inventoryExportOrders/' + id + '/print',
    method: 'get',
  })
}

// 盘点出库单导出excel
export function exportExcelInventoryExportOrders(data) {
  return request({
    url: prePath + `/inventoryExportOrders/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 盘点出库明细页导出excel
export function exportExcelInventoryExportOrdersDetail(data) {
  return request({
    url: prePath + `/inventoryExportOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 手术跟台收货分页查询
export function withTableReceivingOrderPage(params) {
  return request({
    url: prePath + '/withTableReceivingOrder/page',
    method: 'get',
    params,
  })
}

// 手术跟台收货删除
export function withTableReceivingOrderDelete(data) {
  return request({
    url: prePath + '/withTableReceivingOrder',
    method: 'delete',
    data,
  })
}

// 手术跟台收货提交
export function withTableReceivingOrderSubmit(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/submit',
    method: 'post',
    data,
  })
}

// 手术跟台收货撤销
export function withTableReceivingOrderRevoke(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/revoke',
    method: 'post',
    data,
  })
}

// 手术跟台收货拆单
export function withTableReceivingOrderSplit(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/split',
    method: 'post',
    data,
  })
}

// 手术跟台收货驳回
export function withTableReceivingOrderReject(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/checkPrice/reject',
    method: 'post',
    data,
  })
}

// 手术跟台收货确认
export function withTableReceivingOrderConfirm(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/checkPrice/confirm',
    method: 'post',
    data,
  })
}

// 手术跟台收货入库
export function withTableReceivingOrderExecute(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/execute',
    method: 'post',
    data,
  })
}

// 手术跟台收货新增
export function withTableReceivingOrderAdd(data) {
  return request({
    url: prePath + '/withTableReceivingOrder',
    method: 'post',
    data,
  })
}

// 手术跟台收货修改
export function withTableReceivingOrderUpdate(data) {
  return request({
    url: prePath + '/withTableReceivingOrder',
    method: 'put',
    data,
  })
}

// 手术跟台收货验价保存
export function withTableReceivingOrderCheckPrice(data) {
  return request({
    url: prePath + '/withTableReceivingOrder/checkPrice',
    method: 'put',
    data,
  })
}

// 手术跟台收货查询消耗记录跟台产品列表
export function withTableReceivingOrderDetailMergedAll(params) {
  return request({
    url:
      prePath + '/withTableReceivingOrderDetail/mergedFromWithTableRecord/all',
    method: 'get',
    params,
  })
}

// 手术跟台收货新增查询产品个体码详情
export function withTableReceivingOrderAddDetailAll(data) {
  return request({
    url:
      prePath + '/withTableReceivingOrderDetail/detailFromWithTableRecord/all',
    method: 'post',
    data,
  })
}

// 手术跟台收货订单详情查询基础信息
export function withTableReceivingOrderDetail(id) {
  return request({
    url: prePath + '/withTableReceivingOrder/' + id,
    method: 'get',
  })
}

// 手术跟台收货订单详情查询产品明细
export function withTableReceivingOrderDetailAll(params) {
  return request({
    url: prePath + '/withTableReceivingOrderDetail/merged/all',
    method: 'get',
    params,
  })
}

// 手术跟台收货详情页查询个体详情
export function withTableReceivingOrderDetailDetailAll(params) {
  return request({
    url: prePath + '/withTableReceivingOrderDetail/detail/all',
    method: 'get',
    params,
  })
}

// 手术跟台收货明细打印
export function withTableReceivingOrderPrint(id) {
  return request({
    url: prePath + '/withTableReceivingOrder/' + id + '/print',
    method: 'get',
  })
}

// 手术跟台收货验价打印
export function withTableReceivingOrderCheckPrint(id) {
  return request({
    url: prePath + '/withTableReceivingOrder/' + id + '/checkPrice/print',
    method: 'get',
  })
}

// 手术跟台收货明细导出excel
export function withTableReceivingExportOrders(
  id,
  filename = '手术跟台收货单'
) {
  return request({
    url: prePath + `/withTableReceivingOrder/${id}/excel/${filename}`,
    method: 'get',
    responseType: 'blob',
  })
}

// 收票登记分页查询手术跟台收货订单
export function withTableReceivingOrderBillRelatedPage(params) {
  return request({
    url: prePath + '/withTableReceivingOrder/billRelatedPage',
    method: 'get',
    params,
  })
}

//查询流水分类汇总
export function depotAffairTypeSummaryAll(params) {
  return request({
    url: prePath + '/depotStockAffair/typeSummary/all',
    method: 'get',
    params,
  })
}

// 新增子盘点单
export function addSubInventoryOrder(data) {
  return request({
    url: prePath + '/subInventoryOrder',
    method: 'post',
    data,
  })
}

// 修改子盘点单
export function updateSubInventoryOrder(data) {
  return request({
    url: prePath + '/subInventoryOrder',
    method: 'put',
    data,
  })
}

// 查询子盘点单列表未分页
export function subInventoryOrderAll(params) {
  return request({
    url: prePath + '/subInventoryOrder/all',
    method: 'get',
    params,
  })
}

// 批量删除子盘点单
export function subInventoryOrderBatchDelete(data) {
  return request({
    url: prePath + '/subInventoryOrder',
    method: 'delete',
    data,
  })
}

// 子盘点单产品明细
export function subInventoryOrderDetailAll(params) {
  return request({
    url: prePath + '/subInventoryOrderDetail/simpleBean/all',
    method: 'get',
    params,
  })
}

// 修改子盘点单明细
export function subInventoryOrderDetailUpdate(data) {
  return request({
    url: prePath + '/subInventoryOrderDetail',
    method: 'put',
    data,
  })
}

// 子盘点单扫码

export function subInventoryOrderScans(data) {
  return request({
    url: prePath + '/subInventoryOrder/scans',
    method: 'post',
    data,
  })
}

// 子盘点单合并
export function inventoriesMergeSub(id) {
  return request({
    url: prePath + '/inventories/mergeSub/' + id,
    method: 'post',
  })
}

// 子盘点提交
export function subInventoryOrderSubmit(id) {
  return request({
    url: prePath + '/subInventoryOrder/submit/' + id,
    method: 'post',
  })
}

// 子盘点单删除产品
export function subInventoryOrderDetailDelete(data) {
  return request({
    url: prePath + '/subInventoryOrderDetail',
    method: 'delete',
    data,
  })
}

export function subInventoryOrderDetailDeleteByGroups(data) {
  return request({
    url: prePath + '/subInventoryOrderDetail/deleteByGroups',
    method: 'post',
    data,
  })
}

// 主盘点单删除产品
export function inventoryDetailDelete(data) {
  return request({
    url: prePath + '/inventoryDetails',
    method: 'delete',
    data,
  })
}

// 修改主盘点单明细
export function inventoryDetailsUpdate(data) {
  return request({
    url: prePath + '/inventoryDetails',
    method: 'put',
    data,
  })
}

// 子盘点单个体码查询
export function subInventoryOrderDetailExtAll(params) {
  return request({
    url: prePath + '/subInventoryOrderDetailExt/all',
    method: 'get',
    params,
  })
}

// 子盘点单个体码批量更新
export function subInventoryOrderDetailExtBatchUpdate(data) {
  return request({
    url: prePath + '/subInventoryOrderDetailExt/batchUpdateByDTO',
    method: 'put',
    data,
  })
}

// 子盘点单新增产品

export function subInventoryOrderDetailAddProduct(data) {
  return request({
    url: prePath + '/subInventoryOrderDetail/addAndReturn',
    method: 'post',
    data,
  })
}

//主盘点单新增产品

export function inventoryDetailsAddProduct(data) {
  return request({
    url: prePath + '/inventoryDetails/addAndReturn',
    method: 'post',
    data,
  })
}

// 库存产品添加产品弹窗
export function inventoriesSelectProduct(data) {
  return request({
    url: prePath + '/inventories/selectProduct',
    method: 'post',
    data,
  })
}

// 子盘点单获取差异数据
export function subInventoryOrderDetailDiffAll(params) {
  return request({
    url: prePath + '/subInventoryOrderDetail/diff/all',
    method: 'get',
    params,
  })
}

// 子盘点单打印
export function subInventoryOrderPrint(params) {
  return request({
    url: prePath + '/subInventoryOrder/print',
    method: 'get',
    params,
  })
}

// 子盘点单导出
export function subInventoryOrderExcel(data) {
  return request({
    url: prePath + `/subInventoryOrder/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

// 主盘点单查询个体详情
export function inventoryOrderDetailExtAll(params) {
  return request({
    url: prePath + '/inventoryOrderDetailExt/all',
    method: 'get',
    params,
  })
}

// 主盘点单扫码
export function inventoriesScans(data) {
  return request({
    url: prePath + '/inventories/scans',
    method: 'post',
    data,
  })
}

// 主盘点单获取差异数据
export function inventoryDetailsDiffAll(params) {
  return request({
    url: prePath + '/inventoryDetails/diff/all',
    method: 'get',
    params,
  })
}

// 主盘点单删除产品
export function inventoryDetailsDelete(data) {
  return request({
    url: prePath + '/inventoryDetails',
    method: 'delete',
    data,
  })
}

export function inventoryDetailsDeleteByGroups(data) {
  return request({
    url: prePath + '/inventoryDetails/deleteByGroups',
    method: 'post',
    data,
  })
}

// 主盘点单更新个体详情
export function inventoryOrderDetailExtUpdate(data) {
  return request({
    url: prePath + '/inventoryOrderDetailExt/batchUpdateByDTO',
    method: 'put',
    data,
  })
}

// 领用审核出库获取批号
export function depotStoragePageForApplication(params) {
  return request({
    url: prePath + '/depotStorage/pageForApplication',
    method: 'get',
    params,
  })
}

// 采购退回实时库存个体详情
export function getDepotStorageExtGetDeptExt(params) {
  return request({
    url: prePath + '/depotStorageExt/getDeptExt',
    method: 'get',
    params,
  })
}

// 获取库存产品
export function getDepotStockCustomizeListPage(data) {
  return request({
    url: prePath + '/depotStock/customizeList/page',
    method: 'post',
    data,
  })
}

export function getDepotStockCustomizeListAll(data) {
  return request({
    url: prePath + '/depotStock/customizeList/all',
    method: 'post',
    data,
  })
}

export function depotStockScans(data) {
  return request({
    url: prePath + '/depotStock/scans',
    method: 'post',
    data,
  })
}

export function depotStockCustomizeScan(data) {
  //自定义扫码
  return request({
    url: prePath + '/depotStock/customizeScan',
    method: 'post',
    data,
  })
}

export function depotStockCustomizeScanWithConsume(data) {
  //自定义扫码 消耗登记特有
  return request({
    url: prePath + '/depotStock/customizeScanWithConsume',
    method: 'post',
    data,
  })
}

export function customizeScanWithForbidden(data) {
  //自定义扫码 扫码并且过滤
  return request({
    url: prePath + '/depotStock/customizeScanWithForbidden',
    method: 'post',
    data,
  })
}

export function otherExportOrderDetailsCustomizeListPage(data) {
  //其他出库明细
  return request({
    url: prePath + '/otherExportOrderDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function otherExportOrderDetailsCustomizeListAll(data) {
  //其他出库明细
  return request({
    url: prePath + '/otherExportOrderDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getOtherStoreOrderCustomizeGroups(data) {
  //其他入库获取分组
  return request({
    url: prePath + '/otherStoreOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}

export function getOtherExportOrderCustomizeGroups(data) {
  //其他出库获取分组
  return request({
    url: prePath + '/otherExportOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}
//导出移库单
export function exportExcelOtherExportOrderDetail(data) {
  return request({
    url: prePath + `/otherExportOrderDetails/excel`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}

export function getTransferOrderCustomizeGroups(data) {
  //移库出库获取分组
  return request({
    url: prePath + '/transferDetails/customizeGroups',
    method: 'post',
    data,
  })
}

export function getInventoryExportOrderCustomizeGroups(data) {
  //盘点出库获取分组
  return request({
    url: prePath + '/inventoryExportOrderDetails/customizeGroups',
    method: 'post',
    data,
  })
}

export function getInventoriesCustomizeListPage(data) {
  //盘点订单页
  return request({
    url: prePath + '/inventories/customizeList/page',
    method: 'post',
    data,
  })
}

export function getInventoryDetailsCustomizeListPage(data) {
  //盘点明细页
  return request({
    url: prePath + '/inventoryDetails/customizeList/page',
    method: 'post',
    data,
  })
}

export function getInventoryDetailsCustomizeListAll(data) {
  //盘点明细页
  return request({
    url: prePath + '/inventoryDetails/customizeList/all',
    method: 'post',
    data,
  })
}

export function getSubInventoryOrderDetailCustomizeListAll(data) {
  //子盘点明细页
  return request({
    url: prePath + '/subInventoryOrderDetail/customizeList/all',
    method: 'post',
    data,
  })
}

export function subInventoryOrderDetailUpdateByMerge(data) {
  //子盘点个体保存
  return request({
    url: prePath + '/subInventoryOrderDetail/updateByMerge',
    method: 'post',
    data,
  })
}

export function inventoryDetailsUpdateByMerge(data) {
  //子盘点个体保存
  return request({
    url: prePath + '/inventoryDetails/updateByMerge',
    method: 'post',
    data,
  })
}

export function getDepotAffairPage(data) {
  return request({
    url: prePath + '/depotStockAffair/customizeList/page',
    method: 'post',
    data,
  })
}

export function getDepotAffairAll(data) {
  return request({
    url: prePath + '/depotStockAffair/customizeList/all',
    method: 'post',
    data,
  })
}
export function getDepotAffairCustomizeSumAmount(data) {
  return request({
    url: prePath + '/depotStockAffair/customizeList/sumAount',
    method: 'post',
    data,
  })
}
export function getDepotAffairCustomizeGroups(data) {
  return request({
    url: prePath + '/depotStockAffair/customizeGroups',
    method: 'post',
    data,
  })
}

//消耗撤回
export function consumeDetailsInsertRevoke(data) {
  return request({
    url: prePath + '/consumeDetails/insertRevoke',
    method: 'post',
    data,
  })
}
//消耗
export function consumes(params) {
  return request({
    url: prePath + '/consumes',
    method: 'get',
    params,
  })
}

//获取入口并移库流转路径
export function getDepotCirculationPath(params) {
  return request({
    url: prePath + '/receivings/getDepotCirculationPath',
    method: 'get',
    params,
  })
}

//根据所选路径收货入库并移库操作
export function stockAndTransferByPath(data) {
  return request({
    url: prePath + '/receivings/stockAndTransferByPath',
    method: 'post',
    data,
  })
}
//根据所选路径收货入库并移库操作多人验证
export function manyPeopleVerification(data) {
  return request({
    url: prePath + '/receivings/manyPeopleVerification',
    method: 'post',
    data,
  })
}
//消耗撤回
export function receivingDetailsRevoke(data) {
  return request({
    url: prePath + '/receivingDetails/insertRevoke',
    method: 'post',
    data,
  })
}
//寄售消耗
export function getConsignConsumeConfirmOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/customizeList/page',
    method: 'post',
    data,
  })
}
//寄售消耗列表页导出excel
export function excelListConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/excelList',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//寄售消耗详情页导出excel
export function excelDetailConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/excelDetail',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//寄售消耗列表页打印
export function printListConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/printList',
    method: 'post',
    data,
  })
}
//寄售消耗详情页打印
export function printDetailConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/printDetail',
    method: 'post',
    data,
  })
}
//寄售消耗-根据{id}获取一条数据
export function getConsignConsumeConfirmOrderById(id) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/' + id,
    method: 'get',
  })
}
//寄售消耗-新增
export function createConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder',
    method: 'post',
    data,
  })
}
// 保存并提交
export function createConsignConsumeConfirmOrderAndSave(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/saveAndSubmit',
    method: 'post',
    data,
  })
}
//寄售消耗-修改
export function updateConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder',
    method: 'put',
    data,
  })
}
//寄售消耗-删除
export function deleteConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder',
    method: 'delete',
    data,
  })
}
//寄售消耗-退回寄售消耗单
export function backConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/back',
    method: 'post',
    data,
  })
}
//寄售消耗-取消寄售消耗单
export function cancelConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/cancel',
    method: 'post',
    data,
  })
}
//寄售消耗-确认寄售消耗单
export function confirmConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/confirm',
    method: 'post',
    data,
  })
}
//寄售消耗-取消确认寄售消耗单
export function confirmCancelConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/confirmCancel',
    method: 'post',
    data,
  })
}
//寄售消耗-驳回寄售消耗单
export function rejectConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/reject',
    method: 'post',
    data,
  })
}
//寄售消耗-撤回寄售消耗单
export function revokeConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/revoke',
    method: 'post',
    data,
  })
}
//寄售消耗-提交寄售消耗单
export function submitConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/submit',
    method: 'post',
    data,
  })
}
//寄售消耗-审核寄售消耗单
export function ratifyConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/check',
    method: 'post',
    data,
  })
}
//寄售消耗-复核寄售消耗单
export function reviewConsignConsumeConfirmOrder(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/review',
    method: 'post',
    data,
  })
}
//寄售消耗-明细页
export function getConsignConsumeConfirmOrderCustomizeListAll(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/customizeList/all',
    method: 'post',
    data,
  })
}
//寄售消耗-明细页
export function getConsignConsumeConfirmDetailsCustomizeListPage(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/customizeList/page',
    method: 'post',
    data,
  })
}
//待确认消耗明细-批量确认
export function batchConfirmPendConfirmConsumeDetail(data) {
  return request({
    url: prePath + '/pendConfirmConsumeDetail/batchConfirm',
    method: 'post',
    data,
  })
}
//寄售消耗-明细全部
export function getConsignConsumeConfirmDetailsCustomizeListAll(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/customizeList/all',
    method: 'post',
    data,
  })
}
//寄售消耗-明细分组
export function getConsignConsumeConfirmDetailsCustomizeGroups(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/customizeGroups',
    method: 'post',
    data,
  })
}
//寄售消耗-明细自定义汇总金额数量
export function getConsignConsumeConfirmDetailsCustomizeSum(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/customizeSum',
    method: 'post',
    data,
  })
}
//寄售消耗-明细页导出
export function excelConsignConsumeConfirmDetails(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/excel',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//寄售消耗-明细页打印
export function printConsignConsumeConfirmDetails(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/print',
    method: 'post',
    data,
  })
}
export function consumeDetailsConsignConsumeConfirmDetails(data) {
  return request({
    url: prePath + '/consignConsumeConfirmDetails/front/consume/details',
    method: 'post',
    data,
  })
}
//暂估入库
export function getEstimationConfirmationOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/estimation/confirmation/customizeList/page',
    method: 'post',
    data,
  })
}

export function getEstimationConfirmationOrderDetailCustomizeListAll(data) {
  return request({
    url: prePath + '/estimation/confirmationDetails/customizeList/all',
    method: 'post',
    data,
  })
}
export function getEstimationConfirmationById(id) {
  return request({
    url: prePath + '/estimation/confirmation/' + id,
    method: 'get',
  })
}
export function createEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation',
    method: 'post',
    data,
  })
}
export function putEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation',
    method: 'put',
    data,
  })
}
export function deleteEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation',
    method: 'delete',
    data,
  })
}
export function confirmEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation/confirm',
    method: 'post',
    data,
  })
}
export function submitEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation/submit',
    method: 'post',
    data,
  })
}
export function auditEstimationConfirmation(data) {
  return request({
    url: prePath + '/estimation/confirmation/audit',
    method: 'post',
    data,
  })
}
export function selectFromReceivingOrder(data) {
  return request({
    url: prePath + '/estimation/confirmation/selectFromReceivingOrder',
    method: 'post',
    data,
  })
}
export function selectFromReceivingOrderDetail(data) {
  return request({
    url:
      prePath +
      '/estimation/confirmationDetails/selectFromReceivingOrderDetail',
    method: 'post',
    data,
  })
}
export function estimationConfirmationPrintList(data) {
  return request({
    url: prePath + '/estimation/confirmation/printList',
    method: 'post',
    data,
  })
}
export function estimationConfirmationPrintDetail(data) {
  return request({
    url: prePath + '/estimation/confirmation/printDetail',
    method: 'post',
    data,
  })
}
export function estimationConfirmationExcelList(data) {
  return request({
    url: prePath + '/estimation/confirmation/excelList',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
export function estimationConfirmationExcelDetail(data) {
  return request({
    url: prePath + '/estimation/confirmation/excelDetail',
    method: 'post',
    data,
    responseType: 'blob',
  })
}

//最近效期校验
export function depotStockValidateOptimalValidate(data) {
  return request({
    url: prePath + '/depotStockValidate/optimalValidate',
    method: 'post',
    data,
  })
}

//收货单自定义分页
export function TransferGetReceivingOrderCustomizeListPage(data) {
  return request({
    url: prePath + '/transfers/getReceivings',
    method: 'post',
    data,
  })
}
//入库撤回并拒绝
export function receivingDetailsInsertRevokeAndRefuse(data) {
  return request({
    url: prePath + '/receivingDetails/insertRevokeAndRefuse',
    method: 'post',
    data,
  })
}
//暂估撤回
export function estimationConfirmationRevoke(data) {
  return request({
    url: prePath + '/estimation/confirmation/revoke',
    method: 'post',
    data,
  })
}
//暂估整单撤回
export function estimationConfirmationRevokeOrder(data) {
  return request({
    url: prePath + '/estimation/confirmation/revokeOrder',
    method: 'post',
    data,
  })
}
export function handAddReceivings(data) {
  return request({
    url: prePath + '/receivings/handAdd',
    method: 'post',
    data,
  })
}
// 保存并提交
export function handAddReceivingsAndSave(data) {
  return request({
    url: prePath + '/receivings/handSaveAndSubmit',
    method: 'post',
    data,
  })
}
// 保存或提交前置校验
export function validateReceivingOrderNums(data) {
  return request({
    url: prePath + '/receivings/validateReceivingOrderNums',
    method: 'post',
    data,
  })
}
// 保存并提交 发货单导入
export function handAddReceivingsAndSubmit(data) {
  return request({
    url: prePath + '/receivings/saveAndSubmit',
    method: 'post',
    data,
  })
}

//移库-取消
export function transfersCancel(data) {
  return request({
    url: prePath + '/transfers/cancel',
    method: 'post',
    data,
  })
}
//移库-取消拣货
export function transfersCancelDownShelf(data) {
  return request({
    url: prePath + '/transfers/cancelDownShelf',
    method: 'post',
    data,
  })
}

//最近效期校验建账出库
export function beginningDepotStockValidate(data) {
  return request({
    url: '/beginning/beginningDepotStockValidate/optimalValidate',
    method: 'post',
    data,
  })
}

//批量消耗撤回 扫码
export function consumeDetailsScan(data) {
  return request({
    url: prePath + '/consumeDetails/customizeScan',
    method: 'post',
    data,
  })
}
//批量消耗撤回 提交
export function batchRevokeSubmit(data) {
  return request({
    url: prePath + '/consumeDetails/batchRevokeSubmit',
    method: 'post',
    data,
  })
}
//盘点出库保存
export function inventoriesInsertInventoryLossBusiness(data) {
  return request({
    url: prePath + '/inventories/insertInventoryLossBusiness',
    method: 'post',
    data,
  })
}
//获取寄售消耗确认获取路径
export function getConfirmPath(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/confirm/getPath',
    method: 'post',
    data,
  })
}

//获取寄售消耗确认获取路径
export function confirmByPath(data) {
  return request({
    url: prePath + '/consignConsumeConfirmOrder/confirmByPath',
    method: 'post',
    data,
  })
}
//报废出库-取消
export function scrapExportOrdersCancel(data) {
  return request({
    url: prePath + '/scrapExportOrders/cancel',
    method: 'post',
    data,
  })
}
//报废出库-取消拣货
export function scrapExportOrdersCancelDownShelf(data) {
  return request({
    url: prePath + '/scrapExportOrders/cancelDownShelf',
    method: 'post',
    data,
  })
}
//其它出库-取消
export function otherExportOrdersCancel(data) {
  return request({
    url: prePath + '/otherExportOrders/cancel',
    method: 'post',
    data,
  })
}
//其它出库-取消拣货
export function otherExportOrdersCancelDownShelf(data) {
  return request({
    url: prePath + '/otherExportOrders/cancelDownShelf',
    method: 'post',
    data,
  })
}
//盘点出库保存
export function wmsInventoriesInsertInventoryLossBusiness(data) {
  return request({
    url: prePath + '/inventories/wmsInsertInventoryLossBusiness',
    method: 'post',
    data,
  })
}
//主盘点扫出多条选择后回写接口
export function scanUpdateInventoryDetail(data) {
  return request({
    url: prePath + '/inventoryDetails/updateInventoryDetail',
    method: 'post',
    data,
  })
}
//子盘点扫出多条选择后回写接口
export function scanUpdateSubInventoryDetail(data) {
  return request({
    url: prePath + '/subInventoryOrderDetail/updateSubInventoryDetail ',
    method: 'post',
    data,
  })
}
//子盘点单撤回
export function subInventoryOrderRevoke(data) {
  return request({
    url: prePath + '/subInventoryOrder/revoke ',
    method: 'post',
    data,
  })
}
// 申购单 更新库存量
export function getLastAndDeptStock(data) {
  return request({
    url: prePath + '/compute/lastAndDeptStock ',
    method: 'post',
    data,
  })
}
export function getTargetDepot(data) {
  return request({
    url: prePath + '/depotStockAffair/customize/selection/targetDepot ',
    method: 'post',
    data,
  })
}
export function getTargetDept(data) {
  return request({
    url: prePath + '/depotStockAffair/customize/selection/targetDept ',
    method: 'post',
    data,
  })
}
